package com.lin.auth;

import cn.dev33.satoken.SaManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.redis.core.RedisTemplate;

@SpringBootApplication
@ComponentScan("com.lin")
@MapperScan("com.lin.**.mapper")
public class AuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class);
        SaManager.getSaTokenDao().set("name3", "value123123", 100000);
        System.out.println("\n启动成功：Sa-Token配置如下：" + SaManager.getConfig());

    }

}